package com.hcbd.tdwt.base.hcbd;

import com.pangu.bdsdk2021.entity.terminalthreeofficial.BdFkiInfo;
import com.pangu.bdsdk2021.terminal.listener.TerminalListener2_1;

public class BdXyFkiInfo extends BdFkiInfo {
    @Override
    public void build2_1(String str, TerminalListener2_1 terminalListener2_1) {
        instruc=str;
        String[] items = str.split(",");
        if (items.length > 5) {
            if (items[1].length() <= 3) {
                this.setComStr(items[1]);
                this.setComExeSituation(items[2]);
                this.setFreqSetIdication(items[3]);
            } else {
                this.setInstructionTime(items[1]);
                this.setComStr(items[2]);
                this.setComExeSituation(items[3]);
            }
            //this.setTxSuppressInd(items[4]);
           // this.setWaitTime(items[5]);
        } else {
            this.setInstructionTime("00");
            this.setComStr("XXX");
            this.setComExeSituation("N");
            this.setFreqSetIdication("N");
            this.setTxSuppressInd("0");
            this.setWaitTime("0000");
        }
        terminalListener2_1.onBdFkiInfo(this);
    }

}
